package com.crm.jdy.common.pojo;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.crm.jdy.common.enums.CallEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:(工作流对应的审批信息实体类)
 * 
 * @version: V1.0
 * @author: kong
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BasunessMessage extends Model<BasunessMessage> {

	private static final long serialVersionUID = 1617065669431L;


	@TableId(value = "bid", type = IdType.ID_WORKER_STR)
	@ApiModelProperty(name = "bid" , value = "主键")
	private String bid;

	@NotNull(message = "键不能为空")
	@ApiModelProperty(name = "keyss" , value = "键")
	private String keyss;

	@NotBlank(message = "值非空")
	@ApiModelProperty(name = "valuess" , value = "值")
	private String valuess;

	@ApiModelProperty(name = "orders" , value = "排序")
	private CallEnum orders;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "createTime" , value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

	@JsonIgnore
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	@ApiModelProperty(name = "updateTime" , value = "更新最新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;

	@JsonIgnore
	@TableLogic
	@ApiModelProperty(name = "isDelete" , value = "0正常  1删除")
	private Integer isDelete;


    @NotNull(message = "工作流id不能为空")
	@ApiModelProperty(name = "parentId" , value = "工作流的ID")
	private String parentId;
    

}
